import React from 'react'

interface ProfilePageClassMeta {
    user: string
}

class ProfilePageClass extends React.Component<ProfilePageClassMeta> {
    showMessage = () => {
        alert('Follow ' + this.props.user)
    }
    handleClick = () => {
        setTimeout(this.showMessage, 3000)
    }
    selectChange = (event: any) => {
        this.setState({ selected: event.target.value }, () => {
            // console.log(this.state.selected, 'selected')
        })
    }
    render() {
        return (
            <div>
                <button onClick={this.handleClick}>Follow Class</button>
            </div>

        )
    }
}

export default ProfilePageClass